import request from '../utils/request';

export const hospitalData = query => {
    return request({
        url: '/api/upp/organ/doMain',
        method: 'post',
        // url: './json/hospitallist.json',
        // method: 'get',
        params: query,
    });
};
export const doAdd = query => {
    return request({
        url: '/api/upp/organ/doAdd',
        method: 'post',
        // url:'./json/isLogin.json',
        // method: 'get',
        params: query,
    });
};
//删除医院
export const doDelete = query => {
    return request({
        url: '/api/upp/organ/doDelete',
        method:'delete',
        // url:'./json/isLogin.json',
        // method: 'get',
        params: query
    });
};

//修改编辑
export const doUpdate = query => {
    return request({
        url: '/api/upp/organ/doUpdate',
        method:'post',
        // url:'./json/isLogin.json',
        // method: 'get',
        params: query
    });
};
//获取医院信息
export const gethospitalById = query => {
    return request({
        url: '/api/upp/organ/selectById',
        method:'post',
        // url: './json/hospitalone.json',
        // method: 'get',
        params: query
    });
};


